/**
 * 
 */
package de.cbf.cam.dsa.model.entities;

import java.beans.PropertyChangeSupport;

import javax.persistence.Entity;
import javax.persistence.Id;

import de.cbf.cam.dsa.model.persistence.Header;

/**
 * @author Nebelritter
 *
 */
@Entity
public class SF extends Header {
	
	/**
	 * @uml.property  name="name"
	 */
	protected String name;
	/**
	 * @uml.property  name="type"
	 */
	protected int type;
	
	public static String PROPERTYNAME= "SF:";
	/**
	 * @uml.property  name="propertyChangeSupport"
	 */
	public PropertyChangeSupport propertyChangeSupport = new PropertyChangeSupport(this);	
//========================
//		constructors
//========================
	/**
	 * 
	 */
	public SF() {
		
	}
//========================
//	   public methods
//========================
	@Override
	public SF clone() {
		SF sf = new SF();
		sf.name = this.name;
		sf.type = this.type;		
		return sf;
	}

	

//========================
//    standard methods
//========================

	@Override
	public String toString() {
		return name;
	}
//========================
// 	   private methods
//========================

//========================
// 	SHORT property access
//========================

//========================	
//		getters/setters
//========================
	/**
	 * @return  the name
	 * @uml.property  name="name"
	 */
	public String getName() {
		return name;
	}




	/**
	 * @param name  the name to set
	 * @uml.property  name="name"
	 */
	public void setName(String name) {
		this.name = name;
		propertyChangeSupport.firePropertyChange(PROPERTYNAME+"name", null, name);
	}
	/**
	 * @return the sfType
	 */
	public int getSFType() {
		return type;
	}
	/**
	 * @param sfType the sfType to set
	 */
	public void setSFType(int type) {
		this.type = type;
		propertyChangeSupport.firePropertyChange(PROPERTYNAME+"sfType", null, type);
	}
	@Override
	@Id
	public String getGuid() {
		return guid;
	}
	@Override
	public void setGuid(String guid) {
		this.guid=guid;		
	}

//========================
//		listeners
//========================

}
